import axios from '../utils/http'
export async function getMenuList(){
    const res=await axios.get('/api/menulist?istree=1')
    if(res.code==200){
        return res.list
    }
    return false
}
export async function getMenuById(id){
    const res=await axios.get('/api/menuinfo',{params:id})
    if(res.code==200){
        return res.list
    }
    return false
}
